package com.chh.pdinfrastructure.gateway.impl.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chh.pdclient.dto.query.UserListByParamQuery;
import com.chh.pddomain.user.UserEntity;
import com.chh.pdinfrastructure.gateway.impl.dataobject.UserDB;
import org.apache.ibatis.annotations.Param;


public interface UserMapper extends BaseMapper<UserDB> {
    UserDB findByUserName(@Param("id") Long id, @Param("username") String username);

    IPage<UserDB> listByParamQuery(@Param("page") Page<UserEntity> userEntityPage, @Param("query") UserListByParamQuery query);
}




